import swc from '@swc/core';

const res = swc.transformFileSync('./app.jsx', {
    jsc: {
        target: 'es5',
        parser: {
            syntax: 'ecmascript',
            "jsx": true,
        }
    }
});
console.log(res.code);